package com.hRpc;

import com.hrpc.SayHello;
import com.hrpc.annotation.hRpcService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {
    //需要注入一个代理对象
    @hRpcService
    private SayHello sayHello;

    @GetMapping("/hello")
    public String hello(){
        return sayHello.sayHello("我是谁？");
    }
}
